<!DOCTYPE html>
<html>
<head>
<title>认证查询</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<#include "../../../../include/resources.html">
<script type="text/javascript">
	$.canEdit = true;
</script>
<script type="text/javascript">
	var dataGrid;
	var winWidth =  400;
	var winHeight = 450;
	
	$(function() {
		dataGrid = $('#dataGrid').datagrid({
			url : 'userIdentifyList.html',
			fit : true,
			fitColumns : true,
			border : false,
			pagination : true,
			idField : 'id',
			pageSize : 20,
			pageNums :1,
			pageList : [ 20, 30, 40, 50 ],
			sortName : 'id',
			sortOrder : 'asc',
			checkOnSelect : false,
			selectOnCheck : false,
			nowrap : false,
			singleSelect:true,
			columns : [ [
			{ field: 'id', title: '编号', width: 50, checkbox : false},
			{ field: 'userName', title: '用户名', width: 100, checkbox : false},
			{ field: 'realName', title: '真实姓名', width: 80, checkbox : false},
			
			{ field: 'emailStatusString', title: '邮箱认证', width: 80, checkbox : false},
			{ field: 'email', title: '邮箱', width: 100, checkbox : false},
			{ field: 'mobilePhoneStatusString', title: '手机认证', width: 80, checkbox : false},
			{ field: 'mobilePhone', title: '手机号码', width: 100, checkbox : false},
			{ field: 'realNameStatusString', title: '实名认证', width: 80, checkbox : false,},
			{ field: 'realNameVerifyTime', title: '实名认证审核时间', width: 100, sortable:false,
				formatter: function(value,row,index){
					if (value){
						return getLocalTime(value,4);
					} else {
						return "";
					}
				}
			} ] ],
			toolbar : '#toolbar',
			onLoadSuccess : function() {
				$('#searchForm table').show();
				parent.$.messager.progress('close');

			}
		});
	});
	
	function exportExcel(){
		var url = "/modules/user/user/userIdentif/exportExcelUser.html";
		var userName = $("#userName").val();
		var emailStatus = $("#emailStatus").val();
		var mobilePhoneStatus = $("#mobilePhoneStatus").val();
		var realNameStatus = $("#realNameStatus").val();
		var sou = "?userName=" + userName + "&emailStatus=" + emailStatus + "&mobilePhoneStatus=" + mobilePhoneStatus + "&realNameStatus=" + realNameStatus;
		window.location.href = url + sou;
	}
</script>
</head>
<body style="padding:0 20px;" >
	<div class="easyui-layout" data-options="fit : true,border : false">
		<div data-options="region:'north',border:false,collapsible:false" id="searchBox">
			<div class="sLeft">
	            <form id="searchForm">
	            	<input type="text"  name="searchName" class="sInput" placeholder="输入用户名/真实姓名进行搜索" autocomplete="off" onkeydown="if(event.keyCode == 13){ $.fn.dataGridOptions.searchFun('#searchForm');return false;}"/><a href="javascript:;" title="查询" class="sBtn" onclick="$.fn.dataGridOptions.searchFun('#searchForm');">查询</a><a href="javascript:;" class="advBtn" title="条件查询">条件查询 <i class="iconfont">&#xe638;</i></a>
	            	<a href="javascript:void(0);" class="reloadIcon" onclick="dataGrid.datagrid('reload');" title="刷新" ><i class="iconfont">&#xe603;</i></a>
	            </form>
            </div>
            <div class="sRight">
            	<a id="a" onclick="exportExcel();" href="javascript:void(0);" class="addBtn">导出excel</a>	
            </div>
            <form id="showAdw">
		        <ul class="showAdw" style="display:none;">
		        	<a href="javascript:void(0);"><i class="iconfont closeWin">&#xe628;</i></a>
		        	<li><span>用户名</span><input type="text" name="user.userName" autocomplete="off" id="userName"/></li>
		        	<li><span>邮箱状态</span><select name="emailStatus" class="type" id="emailStatus">
							<option value="-2">全部</option>
							<option value="0">未认证</option>
							<option value="1">认证成功</option>
						</select></li>
		        	<li><span>手机状态</span><select name="mobilePhoneStatus" class="type" id="mobilePhoneStatus">
							<option value="-2">全部</option>
							<option value="0">未认证</option>
							<option value="1">认证成功</option>
						</select></li>
		        	<li><span>实名状态</span><select name="realNameStatus" class="type" id="realNameStatus">
							<option value="-2">全部</option>
							<option value="0">未认证</option>
							<option value="1">认证成功</option>
						</select></li>
		       		<li><span>&nbsp;</span><a href="javascript:void(0);" class="searchBtn sureBtn" onclick="$.fn.dataGridOptions.searchFun('#showAdw');">确定</a><a href="javascript:void(0);" class="searchBtn" onclick="$.fn.dataGridOptions.cleanFun('#searchForm');">重置</a></li>
		        </ul>
	        </form>
		</div>
		<div data-options="region:'center'" style="margin-top:30px;padding-bottom:30px;">
			<table id="dataGrid"></table>
		</div>
	</div>
</body>
</html>
<script src="${theme_dir}/js/search.js"></script>